473,419 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

How to create a menu via a button? and how to see, in a label, a link that the mouse pass over?

Hello,
1- How to see, in a Label, the URL of a link that the mouse pass over?
(in the WebBrower control in a vb projet).
2- How to create a menu and a submenu via a button Command1? and after,
hot to delete these two menus?
Thank in advance.
di*******@hotmail.com
Raymond H.
Bonjour,
Comment voir, dans un label, l'URL du lien qu'on survole avec le curseur
de la
souris dans un WebBrowser1 qui est dans un projet vb?
Raymond H.
di*******@hotmail.com
Jul 17 '05 #1
8 3876
On Sun, 16 Nov 2003 02:53:13 -0500, "Raymond H."
<di*******@hotmail.com> wrote:
Hello,
1- How to see, in a Label, the URL of a link that the mouse pass over?
(in the WebBrower control in a vb projet).
2- How to create a menu and a submenu via a button Command1? and after,
hot to delete these two menus?
Have a look at Form.PopupMenu
- you create the Menu as normal using the Menu Designer
- but set its visible property to False
Thank in advance.
di*******@hotmail.com
Raymond H.
Bonjour,
Comment voir, dans un label, l'URL du lien qu'on survole avec le curseur
de la
souris dans un WebBrowser1 qui est dans un projet vb?
Raymond H.
di*******@hotmail.com


Jul 17 '05 #2
Hello,
Thank you but it's not exactly what I need. I'd like to create a
sub-menu (that already is not exist) via a Command button. I'd like to
create (not to appear one that already exist) and appear after his creation.
I know how to creat menu with 'Load Menu' for exemple, but this need first
at least one menu exist. Me, I'd like to creat one when none menu already
exits. :-)
Raymond H.

"J French" <er*****@nowhere.com> a écrit dans le message de
news:3f**************@news.btclick.com...
On Sun, 16 Nov 2003 02:53:13 -0500, "Raymond H."
<di*******@hotmail.com> wrote:
Hello,
1- How to see, in a Label, the URL of a link that the mouse pass over?
(in the WebBrower control in a vb projet).
2- How to create a menu and a submenu via a button Command1? and after,hot to delete these two menus?


Have a look at Form.PopupMenu
- you create the Menu as normal using the Menu Designer
- but set its visible property to False
Thank in advance.
di*******@hotmail.com
Raymond H.
Bonjour,
Comment voir, dans un label, l'URL du lien qu'on survole avec le curseurde la
souris dans un WebBrowser1 qui est dans un projet vb?
Raymond H.
di*******@hotmail.com

Jul 17 '05 #3
On Sun, 16 Nov 2003 12:14:32 -0500, "Raymond H."
<di*******@hotmail.com> wrote:
Hello,
Thank you but it's not exactly what I need. I'd like to create a
sub-menu (that already is not exist) via a Command button. I'd like to
create (not to appear one that already exist) and appear after his creation.
I know how to creat menu with 'Load Menu' for exemple, but this need first
at least one menu exist. Me, I'd like to creat one when none menu already
exits. :-)


Load Menu
I'm using VB5 - that option does not exist

If I wanted to create Menus on the fly I would use Control Arrays

That way you can do:
Load mnuUtil( 1 )

You can 'design' menus inside UserControls as well as inside Forms
- so it is quite possible to create something that builds menus from
'designed seed Control Arrays' completely on the fly

It is a bit difficult to demonstrate in a NG

However this bit of code is in a UserControl :-

Public Property Get TheMenu() As Menu
Set TheMenu = mnuTop
End Property

And this is in a Form :-

Private Sub Command1_Click()
PopupMenu UserControl11.TheMenu
End Sub

Jul 17 '05 #4
Hello,
I'm not able to create a new sub-menu with your codes. I'd like to
create a sub-menu that already not exist.
a+
Raymond H.

"J French" <er*****@nowhere.com> a écrit dans le message de
news:3f***************@news.btclick.com...
On Sun, 16 Nov 2003 12:14:32 -0500, "Raymond H."
<di*******@hotmail.com> wrote:
Hello,
Thank you but it's not exactly what I need. I'd like to create a
sub-menu (that already is not exist) via a Command button. I'd like to
create (not to appear one that already exist) and appear after his creation.I know how to creat menu with 'Load Menu' for exemple, but this need firstat least one menu exist. Me, I'd like to creat one when none menu alreadyexits. :-)


Load Menu
I'm using VB5 - that option does not exist

If I wanted to create Menus on the fly I would use Control Arrays

That way you can do:
Load mnuUtil( 1 )

You can 'design' menus inside UserControls as well as inside Forms
- so it is quite possible to create something that builds menus from
'designed seed Control Arrays' completely on the fly

It is a bit difficult to demonstrate in a NG

However this bit of code is in a UserControl :-

Public Property Get TheMenu() As Menu
Set TheMenu = mnuTop
End Property

And this is in a Form :-

Private Sub Command1_Click()
PopupMenu UserControl11.TheMenu
End Sub

Jul 17 '05 #5
Unless you're willing to delve into the APIs to totally create and handle
menu messages through subclassing, you'll need at least a single member of
the menu array in order to create submenu's on the fly.

--

Randy Birch
MVP Visual Basic
http://www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.
"Raymond H." <di*******@hotmail.com> wrote in message
news:ae*******************@news20.bellglobal.com.. .
: Hello,
: I'm not able to create a new sub-menu with your codes. I'd like to
: create a sub-menu that already not exist.
: a+
: Raymond H.
:
: "J French" <er*****@nowhere.com> a écrit dans le message de
: news:3f***************@news.btclick.com...
: > On Sun, 16 Nov 2003 12:14:32 -0500, "Raymond H."
: > <di*******@hotmail.com> wrote:
: >
: > >Hello,
: > > Thank you but it's not exactly what I need. I'd like to create a
: > >sub-menu (that already is not exist) via a Command button. I'd like to
: > >create (not to appear one that already exist) and appear after his
: creation.
: > >I know how to creat menu with 'Load Menu' for exemple, but this need
: first
: > >at least one menu exist. Me, I'd like to creat one when none menu
: already
: > >exits. :-)
: >
: > Load Menu
: > I'm using VB5 - that option does not exist
: >
: > If I wanted to create Menus on the fly I would use Control Arrays
: >
: > That way you can do:
: > Load mnuUtil( 1 )
: >
: > You can 'design' menus inside UserControls as well as inside Forms
: > - so it is quite possible to create something that builds menus from
: > 'designed seed Control Arrays' completely on the fly
: >
: > It is a bit difficult to demonstrate in a NG
: >
: > However this bit of code is in a UserControl :-
: >
: > Public Property Get TheMenu() As Menu
: > Set TheMenu = mnuTop
: > End Property
: >
: > And this is in a Form :-
: >
: > Private Sub Command1_Click()
: > PopupMenu UserControl11.TheMenu
: > End Sub
: >
: >
: >
:
:
Jul 17 '05 #6
On Tue, 18 Nov 2003 01:34:39 GMT, "Randy Birch"
<rg************@mvps.org> wrote:
Unless you're willing to delve into the APIs to totally create and handle
menu messages through subclassing, you'll need at least a single member of
the menu array in order to create submenu's on the fly.


Absolutely

I would personally have three 'seeds'

mnuUtil
mnuLevel1(0)
mnuLevel2(0)
mnuLevel3(0)

all are set to Visible = False

Then you Load the items you want

However Raymond, your first priority is getting VB5 or VB6
- VB4 will drive you completely mad
Jul 17 '05 #7
Thank you very much :-)
Raymond H.
"J French" <er*****@nowhere.com> a écrit dans le message de
news:3f****************@news.btclick.com...
On Tue, 18 Nov 2003 01:34:39 GMT, "Randy Birch"
<rg************@mvps.org> wrote:
Unless you're willing to delve into the APIs to totally create and handle
menu messages through subclassing, you'll need at least a single member ofthe menu array in order to create submenu's on the fly.


Absolutely

I would personally have three 'seeds'

mnuUtil
mnuLevel1(0)
mnuLevel2(0)
mnuLevel3(0)

all are set to Visible = False

Then you Load the items you want

However Raymond, your first priority is getting VB5 or VB6
- VB4 will drive you completely mad

Jul 17 '05 #8
On Tue, 18 Nov 2003 14:33:34 -0500, "Raymond H."
<di*******@hotmail.com> wrote:
Thank you very much :-)
Raymond H.


Just get VB5 or VB6

I would not inflict VB4 on my worst enemy

Good Luck

Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: eltronic | last post by:
here is some code to add right click context menus. in the few apps I've edited sofar, it just works, once you run rCbinder with the root of the gui or bind B3 all present and future widgets will...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
3
by: John Ortt | last post by:
Hi everyone, I posted with the title "Javascript Menu Not Loading Images" last week but I only posted the code as the site was on a corporate Intranet. Thanks to advice on the thread I have...
4
by: Miguel Dias Moura | last post by:
Hello, I created a datalist in an ASP.Net / VB page. I display the image and price of a few products. When a user clicks an image I want to load the page "detail.aspx?number=id" and send the...
1
by: ColorWorld | last post by:
Hi there I am setting up a menu. It is an "button" with roll over function. The background image changes. That works fine :) But: underneath is an image. Each menu item has its own image AND i...
2
by: Ravi Joshi | last post by:
The menu on my site works fine in IE6 and Firefox. In IE7, there is a problem with the menu: when you mouse over the various main catagories, the sub-catagories all appear to the right as they...
1
by: Carl | last post by:
"Chuckk Hubbard" <badmuthahubbard@gmail.comwrites: Try creating the "main" popup menu before the sub-menus, and when instantiating the sub-menus, pass the main menu as the "master" instead of...
59
by: vishal1082 | last post by:
first, i don't know what could i possibly write for the "question" field... i have a button, and i put a label over it, i did that, and transparency and other things are not a problem for me, the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.